package com.yanqu.road.entity.retrievereward.config;

import com.yanqu.road.entity.activity.ActivityConfig;

import java.util.HashMap;
import java.util.Map;

public class RecoveryRewardConfig {

    private int titleLimit;         //身份限制
    private int recoveryMaxTime;    //奖励找回最多累积天数/d
    private Map<Integer,RecoveryRewardParameterConfig> parameterConfigMap = new HashMap<>();

    public int getTitleLimit() {
        return titleLimit;
    }

    public int getRecoveryMaxTime() {
        return recoveryMaxTime;
    }

    public Map<Integer, RecoveryRewardParameterConfig> getParameterConfigMap() {
        return parameterConfigMap;
    }

    public void setParameterConfigMap(Map<Integer, RecoveryRewardParameterConfig> parameterConfigMap) {
        this.parameterConfigMap = parameterConfigMap;
    }

    public RecoveryRewardConfig(Map<Integer,RecoveryRewardParameterConfig> parameterConfigMap,int titleLimit,int recoveryMaxTime) {
        if (!parameterConfigMap.isEmpty()){
            this.parameterConfigMap = parameterConfigMap;
        }
        this.titleLimit = titleLimit;
        this.recoveryMaxTime = recoveryMaxTime;
    }

}
